
 LFInputOrderField* order = (LFInputOrderField*)fdata;

                        // the increment of local_id has been moved to req_order_insert()
                        record_order(local_id, order->order_id, requestId);
                        order->local_id = local_id;

                        long before_nano = kungfu::yijinjing::getNanoTime();
                        req_order_insert(order, order->account_index, requestId, cur_time);





pair<int, int> ITDEngine::get_order_request_id(int local_id)
{
//  IDMap::iterator it = id_map.find(local_id);
//  return it == id_map.end() ? std::make_pair(-1, 0) : it->second;
    return id_arr[local_id % MAX_ORDER_LIMIT];
}

void ITDEngine::record_order(int local_id, int order_id, int request_id)
{
//  id_map[local_id] = make_pair(order_id, request_id);
    id_arr[local_id % MAX_ORDER_LIMIT] = make_pair(order_id, request_id);
}



    tie(rtn_order->order_id, rid) = get_order_request_id(rtn_order->local_id);
    writer->write_frame(rtn_order, sizeof(LFRtnOrderField), source_id, MSG_TYPE_LF_RTN_ORDER, true, rid);
    